package com.itheima.myIO;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Demo3 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fileOutputStream = new FileOutputStream("D:\\b.txt");
        byte[] bytes = {97,98,99,100,101,102,103};
        fileOutputStream.write(bytes,1,4);

        fileOutputStream.write(" 张三,23岁,男".getBytes());

        fileOutputStream.close();
    }
}
